<?php

use yii\db\Migration;

class m180703_010432_cases extends Migration
{
    public function up()
    {
        $this->addColumn('{{%cases}}', 'description', $this->string()->notNull()->defaultValue('')->comment('简介')->after('age'));
    }

    public function down()
    {
        $this->dropColumn('{{%cases}}', 'description');
    }
}
